import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询案由列表
export function getCaseBirefList(data,query) {
  return request({
    url: '/bussiness/casebiref/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 查询案由详情
export function getCaseBirefInfo(query) {
  return request({
    url: '/bussiness/casebiref/info',
    method: 'get',
    params: query
  })
}

// 新增案由
export function createCaseBiref(data) {
  return request({
    url: '/bussiness/casebiref/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 修改案由
export function editCaseBiref(data) {
  return request({
    url: '/bussiness/casebiref/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除用户
export function deleteCaseBiref(casebirefId) {
  return request({
    url: '/bussiness/casebiref/remove?ids=' + casebirefId,
    method: 'post',
    isEncrypt: false
  })
}



